package experiment1_bag;
import java.util.Scanner;
public class yunshuan {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入第一个数：");
        int a=scanner.nextInt();
        System.out.print("请输入第二个数：");
        int b=scanner.nextInt();
        System.out.println("请输入运算符：（+、-、*、/、%）");
        char ch = scanner.next().charAt(0);
        if (ch == '+') {
            System.out.println(a+"+"+b+"="+(a+b));
        }else if (ch == '-') {
            System.out.println(a+"-"+b+"="+(a-b));
        }else if (ch == '*') {
            System.out.println(a+"*"+b+"="+(a*b));
        }else if (ch == '/') {
            System.out.println(a+"/"+b+"="+(a/b));
        }else if (ch == '%') {
            System.out.println(a+"%"+b+"="+(a%b));
        }
    }
}
